<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="/common/common.jsp"%>
<%@ page import="com.chanyachting.emall.util.*" %>
<%@ page import="java.util.*" %>

<%@ page import="com.chanyachting.emall.domain.*" %>
<%@ page import="com.chanyachting.emall.util.RequestUtil" %>
<%@ page import="com.chanyachting.emall.service.*" %>
<%@ page import="com.chanyachting.emall.serviceImpl.*" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="" /> 
<meta name="description" content="" />
<link href="css/import.css" type="text/css" rel="stylesheet" />
<title></title>

	 
<script type="text/javascript" src="<%=root %>/js/jquery-1.3.2.min.js" charset="utf-8">//ADCRM</script>
<script type="text/javascript" src="<%=root %>/js/jquery.form.js" charset="utf-8">//ADCRM</script>
	
	
	<script language="javascript" type="text/javascript">

	$(function(){

		$.ajaxSetup ({
		    cache: false //关闭AJAX相应的缓存
		});


		$("#joblist").load("ri_job_list.jsp");

		});


	//创建招聘信息
	function createri(theForm){

		 options={
				    url:theForm.action,
				    success: function(data){
			    
			 		alert("创建成功！");

			 		$("#joblist").load("ri_job_list.jsp");   //刷新岗位列表

				    }
				  };
					
			$(theForm).ajaxSubmit(options);

	}

</script>

</head>

<body>
<div class="tab_box">
	<div class="tab_menu">
    	<a href="ri_create.jsp" class="current">发布人才招聘</a>
        <a href="ri_list.jsp">管理人才招聘</a>
    </div>
    <div class="tab_submenu">
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="50%">&nbsp;</td>
          <td align="right"><strong><a href="#">预览</a><a href="#">打印</a><a href="#">导出</a></strong></td>
        </tr>
      </table>
    </div>
</div>

<%

	//从session中获得公司对象
	RequestUtil ru=new RequestUtil(request);
	
	Company company=(Company)ru.getSessionObject(CompanyService.COMPANY_IN_SESSION,new Company());
	

%>

<form action="<%=root %>/memberBackend/riCreate.do" method="post" enctype="multipart/form-data" name="form3" id="form3">

<input type="hidden" name="companyId" value="<%= company.getId() %>" />

<div id="bigbox">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="50%" valign="top"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td width="100" height="28" align="right">公司名称：</td>
        <td><label>
          <input type="text" name="companyName" id="textfield2" value="<%=company.getName() %>"/>
        </label></td>
      </tr>
      <tr>
        <td height="28" align="right">地址：</td>
        <td><label>
          <input type="text" name="companyAddress" id="textfield3" value="<%=company.getDetailAddress() %>"/>
        </label></td>
      </tr>
      <tr>
        <td height="28" align="right">邮编：</td>
        <td><label>
          <input type="text" name="companyPostCode" id="textfield5" value="<%=company.getPostcode() %>"/>
        </label></td>
      </tr>
      <tr>
        <td height="28" align="right">电话：</td>
        <td><label>
          <input type="text" name="companyPhone" id="textfield6" value="<%=company.getTel() %>"/>
        </label></td>
      </tr>
      <tr>
        <td height="28" align="right">传真：</td>
        <td><label>
          <input type="text" name="companyFox" id="textfield7" value="<%=company.getFax() %>"/>
        </label></td>
      </tr>
      <tr>
        <td height="28" align="right">联系人：</td>
        <td><label>
          <input type="text" name="contactName" id="textfield8" value="<%=company.getLinkManName() %>"/>
        </label></td>
      </tr>
      <tr>
        <td height="28" align="right">联系人电话：</td>
        <td><input name="contactPhone" type="text" id="textfield9" value="<%=company.getLinkManPhone() %>"/></td>
      </tr>
      <tr>
        <td height="28" align="right">电子邮件：</td>
        <td><label>
          <input type="text" name="contactEmail" id="textfield10" value="<%=company.getLinkManEmail() %>"/>
        </label></td>
      </tr>
      <tr>
        <td height="28" align="right">网站：</td>
        <td><label>
          <input type="text" name="companyWebUrl" id="textfield11" value="<%=company.getWebPage() %>"/>
        </label></td>
      </tr>
    </table></td>
    
    <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td align="center"><img src="<%= company.getLogoUrl() %>" width="200" height="120" /></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td valign="top">&nbsp;</td>
    <td valign="top">&nbsp;</td>
  </tr>
</table>

<table width="700" border="0" align="center" cellpadding="0" cellspacing="0">
	
     <tr>
      <td width="100" align="left" valign="top">　<strong>岗位信息：</strong>
      	<input type="button" value="添加岗位" onclick="window.open('ri_job_add.jsp');" />
      </td>
      </tr>

</table>

<div id="joblist">招聘岗位加载中。。。。</div>
  
  <table width="700" border="0" align="center" cellpadding="0" cellspacing="0">


    <tr>
      <td colspan="2" align="right" class="td_top">&nbsp;</td>
    </tr>
    <tr>
      <td width="100" align="left" valign="top">　<strong>公司简介：</strong></td>
      <td valign="top"><p>
          <label>
          <textarea name="companySummary" id="textarea3" cols="92" rows="9"><%= company.getCompanySummary() %></textarea>
          </label>
      </p></td>
    </tr>
  </table>
  
<table width="700" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td align="right">&nbsp;</td>
      <td width="550">&nbsp;</td>
    </tr>
    <tr>
      <td width="150" align="right">选择发布频道：</td>
      <td>
      <select name="`channelId`" id="select9">
      	<option value="0">请选择</option>
      </select>
        <input type="radio" name="radio" id="radio" value="radio" />立即发布
		<input type="radio" name="radio" id="radio2" value="radio2" />待上架 　
 		<span class="txt_gray">什么是待上架? 说明：待上架的内容不在前台显示</span>
 	</td>
    </tr>
  </table>
  <table width="700" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
      <td align="center" class="td_bottom">&nbsp;</td>
    </tr>
    <tr>
      <td height="60" align="center"><label>
        <input type="button" name="button2" id="button2" value="预览" />
        <input type="button" name="button2" id="button4" value="保存" onclick="createri(this.form);"/>
        <input type="reset" name="button2" id="button6" value="取消" />
      </label></td>
    </tr>
  </table>
</div>
</form>
</body>
</html>

